from rest_framework.routers import DefaultRouter
from django.urls import path, re_path
from main.script.views.script import ScriptViewSet, ScriptExecView, ScriptDetailViewSet, get_project_language_list, \
    get_game_version
from main.script.views.group import ScriptGroupModelViewSet

router = DefaultRouter()
router.register(r'group', ScriptGroupModelViewSet)
router.register(r'info', ScriptViewSet)
router.register(r'record', ScriptDetailViewSet)

urlpatterns = [
    path('exec', ScriptExecView.as_view()),
    path('projectLanguageList', get_project_language_list),
    path('getGameVersion', get_game_version),
    # re_path('button/$', button),
]
urlpatterns += router.urls
